@if(Sentry::check())
<form id="form-comment" class="form-horizontal form-comment" accept-charset="utf-8" method="post">
    {{ Form::token() }}
    {{ Form::hidden('type',Input::old('type',$type)) }}
    {{ Form::hidden('target_id',Input::old('target_id',$target_id)) }}
    {{ Form::hidden('parent_id') }}
    <div class="txt-lf">
        {{ Form::textarea('content',null, array('rows'=>2,'class'=>'comment-content','id'=>'comment-content')) }}
    </div>
    <div class="txt-lr">
        {{ Form::submit('Gửi') }}
    </div>
</form>
<script type="text/javascript">
    $(document).ready(function () {
        $('.comment-content').keypress(function (e) {
            var keyCode = (e.keyCode ? e.keyCode : e.which);
            if (keyCode == 13) {
                var elem = $('#form-comment');
                var options = elem.serialize();
                elem.addComment(options);
            }
        })
    });
</script>
@else
Bạn phải <a href="{{route('signin')}}">Đăng nhập</a> để bình luận trên nội dung này
@endif